package com.ruoyi.doorcontrol.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 公司车辆对象 zy_car
 *
 * @author zhang
 * @date 2023-12-29
 */
public class ZyCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公司车辆信息 */
    private Long id;

    /** 公司人员id */
    @Excel(name = "公司人员id")
    private Long userId;

    /** 车牌 */
    @Excel(name = "车牌")
    private String plateNum;

    /** 人员姓名 */
    @Excel(name = "人员姓名")
    private String userName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态  0正常 1停用*/
    private String status;

    /** 是否删除 0未删除  1删除  */
    private String isDelete;
    /** 临时车 */
    private String temporaryCar ;

    private Integer pageNum;
    private Integer pageSize;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setPlateNum(String plateNum)
    {
        this.plateNum = plateNum;
    }

    public String getPlateNum()
    {
        return plateNum;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getTemporaryCar() {
        return temporaryCar;
    }

    public void setTemporaryCar(String temporaryCar) {
        this.temporaryCar = temporaryCar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("plateNum", getPlateNum())
            .append("userName", getUserName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
